<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Staffs extends BaseModel
{
    protected $table = 'staffs';


    public function camspus(){
        return $this->belongsTo(Campus::class, 'campus_id');
    }

    public function route() {  // 单数命名
        return $this->belongsTo(Routes::class, 'route_id');
    }
}
